package cn.jd.controller;
import java.util.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.jd.pojo.Room;
import cn.jd.service.IRoomService;
@CrossOrigin
@Controller
public class ShopAPI {
	@Autowired
    private IRoomService shopService;
	@ResponseBody
	@RequestMapping("/getShopList")
	public List<Room> getShopList(){
		
		
		return shopService.shopList();
	}
}
